package com.hyt.it.ogt.kq.service.bm.model.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hyt.it.ogt.kq.common.convert.CustomListToStringConverter;
import com.hyt.it.ogt.kq.service.bm.model.entity.StudentInfo;
import com.hyt.it.ogt.kq.service.bm.model.entity.StudentProject;
import com.hyt.it.ogt.kq.service.bm.model.entity.StudentSubject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @program: it-ogt-kq
 * @description:
 * @author: Yang HuanKun
 * @create: 2022-06-29 14:33
 **/
@Data
@Builder
@ApiModel(value = "导入考生人员数据VO", description = "导入考生人员数据VO")
public class ImportStudentDataVO {

    @ExcelProperty("考生姓名")
    @ApiModelProperty(value = "考生姓名")
    private String studentName;

    @ExcelProperty("证件号码")
    @ApiModelProperty(value = "证件号码")
    private String identificationNo;

    @ExcelIgnore
    @ExcelProperty("校验状态")
    @ApiModelProperty(value = "校验状态 true异常  false无异常")
    private Boolean validStatus;

    @ExcelProperty(value = "数据校验结果", converter = CustomListToStringConverter.class)
    @ApiModelProperty(value = "数据校验结果")
    private List<String> validMessage;

    @ExcelIgnore
    @JsonIgnore
    @ApiModelProperty(value = "数据校验结果code码")
    private List<Integer> errorCodes;

    @ExcelIgnore
    @JsonIgnore
    @ApiModelProperty(value = "考生导入数据")
    private Map<String, String> studentInfoData;

    @ExcelIgnore
    @JsonIgnore
    @ApiModelProperty(value = "考生信息集合")
    private List<StudentInfo> studentInfo;

    @ExcelIgnore
    @JsonIgnore
    @ApiModelProperty(value = "考生报名信息")
    private StudentProject studentProject;

    @ExcelIgnore
    @JsonIgnore
    @ApiModelProperty(value = "考生科目")
    private List<StudentSubject> studentSubject;
}
